//
//  BHMessageMainHeaderView.swift
//  BigHealth
//
//  Created by 蔺百好 on 2021/7/19.
//

import UIKit

class BHMessageMainHeaderView: UIView {

    @IBOutlet weak var gameGroupBtn: UIButton!
    @IBOutlet weak var activityGroupBtn: UIButton!
    @IBOutlet weak var dynamicBtn: UIButton!
    
    
    @IBOutlet weak var gameMessageCount: UILabel!
    @IBOutlet weak var activityMessageCount: UILabel!
    @IBOutlet weak var dynamicMessageCount: UILabel!
    
    
    @IBOutlet weak var gameMessageWidth: NSLayoutConstraint!
    @IBOutlet weak var activityMessageWidth: NSLayoutConstraint!
    @IBOutlet weak var dynamicMessageWidth: NSLayoutConstraint!
    
    
    static func loadFromXib() -> BHMessageMainHeaderView {
        let array = Bundle.main.loadNibNamed("BHMessageMainHeaderView", owner: nil, options: nil)
        let  view = array![0] as! BHMessageMainHeaderView
        return view
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        
        self.gameMessageCount.addLayerCorner(8, 0.5, .white)
        self.activityMessageCount.addLayerCorner(8, 0.5, .white)
        self.dynamicMessageCount.addLayerCorner(8, 0.5, .white)
    }
    
    @IBAction func groupDidAct(_ sender: UIButton) {
        
    }
    
}


class BHGroupChatInfoFlagView: UIView {
    
}
